package com.westa.smallshop.register;

import com.westa.smallshop.common.BasePresenter;
import com.westa.smallshop.common.BaseView;

/**
 * Created by cy123 on 2016/9/12.
 */
interface RegisterContract {
    interface View extends BaseView<Presenter> {
        void showPhoneNumberEmptyError();

        void showPasswordEmptyError();

        void showPasswordRepeatEmptyError();

        void showPasswordNotSameError();

        void showPhoneNumberAlreadyExistsError();

        void showPasswordTooShort();

        void showCreateSuccessful();

        void showCreateFailed(String errorMsg);

        void showRegisterDialogProgress();


    }

    interface Presenter extends BasePresenter {

        boolean doCheckInfo(String phoneNum, String password, String passwordRepeat);

        void doCreate(String phoneNum, String password);

        void cancelRegister();

    }

}
